import { LAYOUT } from '@/router/constants';
import { AppRouteRecordRaw } from '@/types/router';

const book: AppRouteRecordRaw = {
  orderBy: 10,
  path: '/book',
  name: 'Book',
  redirect: '/book/list',
  component: LAYOUT,
  meta: {
    title: '图书管理',
    icon: 'code'
  },
  children: [
    {
      path: 'list',
      name: 'BookList',
      component: () => import('@/views/book/list/index.vue'),
      meta: {
        title: '书籍管理',
        icon: 'code'
      }
    },
    {
      path: 'type',
      name: 'BookType',
      component: () => import('@/views/book/type/index.vue'),
      meta: {
        title: '图书类型',
        icon: 'code'
      }
    }
  ]
};

export default book;
